package com.zxdemo.security.dao;

import java.util.List;
import java.util.Map;




/**   
* @Description: 基础dao
* <p>Copyright: Copyright (c) 2017<／p>
* @Package com.zxdemo.security.dao
* @author 张翔
* @date 下午7:55:30 
* @version V1.0   
*/
public interface BaseDao<T> {
	
	void save(T t);
	
	void save(Map<String, Object> map);
	
	void saveBatch(List<T> list);
	
	int update(T t);
	
	int update(Map<String, Object> map);
	
	int delete(Object id);
	
	int delete(Map<String, Object> map);
	
	int deleteBatch(Object[] id);

	T queryObject(Object id);
	
	List<T> queryList(Map<String, Object> map);
	
	List<T> queryList(Object id);
	
	int queryTotal(Map<String, Object> map);

	int queryTotal();
}
